#include "Location.h"
#include <iostream>
using namespace std;

int main()
{
    Location A(-3, -4);
    Location B(-2, 5);
    double d1 = A.distance(B);
    double d2 = distance(A, B);

    cout << "A(" << A.Getx() << "," << A.Gety() << "), B("
         << B.Getx() << "," << B.Gety() << ")\n";
    cout << "Distance1=" << d1 << "\n";
    cout << "Distance2=" << d2 << "\n";
    return 0;
}
